<?php
/**
 * Created by b17
 * 3/1/12 7:17 PM
 */

namespace Managers\Payment\Strategy;

class MoneyExpressStrategy implements \G4T\Payment\ExpressStrategy
{
    private $_price;

    public function __construct()
    {
        $this->_price = \Zend_Registry::get('config')->paypal->price;
    }

    public function setParams(\Zend_Http_Client $client, $items)
    {
        $client->setParameterGet('L_NAME0', 'Money');
        $client->setParameterGet('L_DESC0', 'Russian Express money');
        $client->setParameterGet('L_AMT0', $this->_price);
        $client->setParameterGet('L_QTY0', $items);
    }

    public function getTotalAmount($items)
    {
        return $items * $this->_price;
    }
}
